package sdu.icat.sys.smodel;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

/**
 * 通知公告
 * @author ljh_2015
 *
 */
@Entity
@Table(name="sys_notice")
public class SysNotice {

    @Id
    @GeneratedValue
    private long id;
    
    @Column(nullable=false,length=100)
    private String notice;
    
    /**
     * 是否显示
     */
    private boolean isShow;
    
    @Temporal(TemporalType.TIME)
    @CreationTimestamp
    private Date creatime;
    
    @Temporal(TemporalType.TIME)
    @UpdateTimestamp
    private Date updateTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean isShow) {
        this.isShow = isShow;
    }

    public Date getCreatime() {
        return creatime;
    }

    public void setCreatime(Date creatime) {
        this.creatime = creatime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    
}
